*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}


/*设置背景*/
html,body{
    height: 100%;
    background-image: url(../image/背景.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/*设置导航栏*/
.nav{
    display: flex;
    align-items: center;
    width: 100%;
    height: 50px;
    background-color: rgba(50,50,50,0.4);
    color: rgb(255, 255, 255);
}

/*设置logo图片*/
.nav img{
    height: 45px;
    width: 45px;
    border-radius: 50%;
    margin-left: 30px;
    margin-right: 10px;
}

/*设置留白*/
.nav .spacer{
    margin-left: 60%;
}

/*设置超链接样式*/
.nav a{
    text-decoration: none;
    color: white;
    margin: 10px;
}

.nav a:hover{
    color: black;
    font-size: 18px;
    transition: all 0.5s;
}

.container{
    width: 1000px;
    height: calc(100% - 50px);
    display: flex;
    margin: 0 auto;
    justify-content: space-between;
}

/*设置左侧个人简介布局*/
.container-left{
    height: 100%;
    width: 200px;
}

/*设置右侧内容详细布局*/
.container-right{
    height: 100%;
    width: 795px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
/*overflow 内容溢出自动滚条*/
    overflow: auto;
}

/*个人名片*/
.card{
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    padding: 30px;
}

.card img{
    width: 150px;
    height: 150px;
    border-radius: 50%;
}

.card h3{
    text-align: center;
    padding: 10px;
}

.card a{
    display: block;
    text-align: center;
    text-decoration: none;
    color: gray;
    border-radius: 10px;
    padding: 10px;
    transition: all 0.5s;
}

.card a:hover{
    border-radius: 10px;
    color: white;
    font-size: 20px;
}

.card .count{
    display: flex;
    padding: 5px;
    justify-content: space-around;
}
/*设置滚动条*/
::-webkit-scrollbar {
    width: 14px;
    height: 14px;
  }
   
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 5px solid transparent;
  }
   
  ::-webkit-scrollbar-track {
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5) inset;
  }
   
  ::-webkit-scrollbar-thumb {
    min-height: 20px;
    background-clip: content-box;
    box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.5) inset;
  }
   
  ::-webkit-scrollbar-corner {
    background: transparent;
  }
